#include "PointIndexes.h"

PointIndexes::PointIndexes(int n)
{
	this->n = n;
}

PointIndexes::PointIndexes(int i1, int i2, int i3, int i4)
{
	this->Set(i1, i2, i3, i4);
}

PointIndexes::~PointIndexes()
{
}

void PointIndexes::Set(int i1, int i2, int i3, int i4)
{
	data[0] = i1;
	data[1] = i2;
	data[2] = i3;
	if (i4 != -1)
	{
		data[3] = i4;
		n = 4;
	}
	else
	{
		n = 3;
	}
}
